package com.chexiehui.jc.mvp.mine;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;
import com.chexiehui.jc.entity.UserInfo;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 我的
 * @Auth SongJun
 * @Date 2020/05/21 00:19
 **/
public interface MineCovenant {

    interface View extends BaseView {
        void onGetUserInfoSuccess(BaseModel<UserInfo> successResult);

        void onGetUserInfoFailure(BaseModel<Object> failureResult);
    }
    
    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_GET_USER_INFO)
        Observable<BaseModel<UserInfo>> getUserInfo(@Field("timespan") String timespan);
    }

    interface Presenter {
        void getUserInfo();
    }

}